home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3366 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  37 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: cs.vu.nl!irmen
  3. From: irmen@cs.vu.nl (Irmen de Jong)
  4. Subject: Re: Getting console size
  5. Nntp-Posting-Host: fluit.cs.vu.nl
  6. References: <DMEpF0.CnD.0.-s@cs.vu.nl>
  7. Sender: news@cs.vu.nl
  8. Organization: Dept. of Computer Science, Vrije Universiteit Amsterdam
  9. Date: Mon, 12 Feb 1996 13:12:03 GMT
  10. X-Newsreader: TIN [version 1.2 PL2]
  11. Message-ID: <DMnzC4.IIE.0.-s@cs.vu.nl>
  12.  
  13. On Wed, 7 Feb 1996 12:59:23 GMT Irmen de Jong (irmen@cs.vu.nl) (myself) wrote:
  14.  
  15. : How exactly do the console (CON:) sequences regarding querying the
  16. : window size, cursor position etc. work?
  17.  
  18. : I open CON: with MODE_READWRITE, write the window status request escape
  19. : sequence to it (errrr was that <esc>[q) and tried to read the reply.
  20. : But, no reply showed up!
  21.  
  22. : I'd like to query the size of the CON: window, so I can use it for
  23. : text viewers/editors etc.
  24.  
  25. Just like vim does. But; vim reads the console size from the console
  26. structure (not sure how). I want to query it 'legally' from CON: itself,
  27. by sending CON: a proper escape sequence. How do I read the result???
  28. Does this work at all? (Where are the "window status report" sequences
  29. for, then?)
  30.  
  31. Any help appreciated,
  32. Irmen
  33.  
  34. --
  35. / Irmen de Jong (email: irmen@cs.vu.nl WWW: http://www.cs.vu.nl/~irmen/)  \
  36. \                 ``Nothing lasts forever'' -- Species                    /
  37.